######

READ ME

This folder contains replication material for York, Erin. "Ministries matter: Technocrats and regime loyalty under autocracy" (Political Science Research and Methods, 2023). 

Please cite the published article when utilizing these files.


## Description of files

# Code files

02_rep_fig1.r : This r file contains code to generate Figure 1 in the main text. 

03_rep_main.r : This r file contains code to generate all other figures and tables in the main text and online appendix.

# Data files

cab_independents.csv : This is the cross-national dataset on cabinet makeup used to generate Figure 1. Data are at the country-year level. Dataset includes country isocodes, year, number of ministry positions on cabinet (n_mins), number of ministers without a partisan affiliation (independent), and proportion of cabinet without a partisan affiliation (prop_ind). Please note: this dataset was generated using the WhoGov v2.0 dataset ("WhoGov_within_V2.0.csv"), downloadable via https://politicscentre.nuffield.ox.ac.uk/whogov-dataset/download-dataset/. I include code to generate cab_independents.csv using the WhoGov v2.0 dataset in file 02_rep_fig1.r.

query_data.csv : This is a dataset of written queries submitted by Moroccan MPs during the 2011-2016 parliamentary session. Data on query text, asker, date of submission, ministry concerned, and date of response (if one was issued) were obtained via the official parliamentary website, cleaned, and combined with additional information on MP attributes and ministry leadership.


## Description of analysis

The analysis was conducted using R version 4.2.1 (2022-06-23).